﻿#region Header
/*
 * name：Role
 * author：Kain
 * date：11/25/2010 11:47:27 AM
 *********************************************
 * History:
 * $Header$
 * $History$
 */
#endregion

#region imported namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
#endregion

namespace Cherry.Agile.Security
{
    /// <summary>
    /// 角色
    /// </summary>
    [Serializable]
    [DataContract]
	public class Role
	{
        /// <summary>
        /// 构造函数
        /// </summary>
        public Role()
        {
            Permissions = new Permission[]{};
        }

        /// <summary>
        /// 名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        [DataMember]
        public string Code { get; set; }


        /// <summary>
        /// 附加信息
        /// </summary>
        [DataMember]
        public string Tag { get; set; }

        /// <summary>
        /// 授权集
        /// </summary>
        [DataMember]
        public Permission[] Permissions { get; set; }       
	}
}
